<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC__/css/admin.css">
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top" id="add">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 店铺详情</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="__URL__/setTo">
        <input type="hidden" class="input w50" value="{$res[0].shop_id}" name="id"/>
                    <div class="form-group">
        <div class="label">
          <label>上级id：</label>
        </div>
        <div class="field">
          <input type="text" name="pid" id="pid" value="{$res[0].pid}" class="shuru fl" placeholder=""/>
          <div class="tips"></div>
        </div>
      </div>    
      <div class="form-group">
        <div class="label">
          <label>上级类别：</label>
        </div>
        <div class="field">
          <select class="shuru fl" name="is_user" size="1" id="area">
                <option value="">请选择</option>
                    <option value="0" <?php if($res[0]['is_user'] == 0){echo 'selected';}?> >商家</option>
                    <option value="1" <?php if($res[0]['is_user'] == 1){echo 'selected';}?> >会员</option>
            </select>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>店铺名字：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{$res[0].name}" name="name"/>
          <div class="tips"></div>
        </div>
      </div>    
      <div class="form-group">
        <div class="label">
          <label>联系人：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{$res[0].contacts}" name="contacts" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>地区：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="area" value="{$res[0].area}"  />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>类别：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="type" value="{$res[0].type}"  />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>地址：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="address" value="{$res[0].address}" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>简介：</label>
        </div>
        <div class="field">
        	<textarea type="text" class="input" name="synopsis" style="height:120px;" value="">{$res[0].synopsis}</textarea>
          	<div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>图片1：</label>
        </div>
        <div class="field">
        	<img src="__PUBLIC__/Uploads/{$res[0].photo1}"  style="width:15%; float:left;">
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>图片2：</label>
        </div>
        <div class="field">
        	<img src="__PUBLIC__/Uploads/{$res[0].photo2}"  style="width:15%; float:left;">
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <input class="button bg-main icon-check-square-o" type="submit"  value="提交" /> 
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>